#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTimer>
#include <QProgressDialog>


QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void keyPressEvent(QKeyEvent*);
    void mousePressEvent(QMouseEvent*);
private slots:
    void on_pushButton_clicked();
    void UpdateTimer();
    void CancelTimer();
private:
    Ui::Widget *ui;
    int counter = 0;
    QTimer *timer;
    QProgressDialog *progDilo;
};
#endif // WIDGET_H
